package com.itcat.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itcat.mysql.pojo.SmsHomeAdvertise;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface SmsHomeAdvertiseService {

    Page<SmsHomeAdvertise> findList(String endTime,Integer pageNum, Integer pageSize, String name, Integer type);

    SmsHomeAdvertise queryOne(Integer id);

    //添加广告
    void create(SmsHomeAdvertise smsAdvertise);

    void delete(List<Integer> ids);

    void deleteById(Integer id);

    //根据ID修改状态
    void updateStatus(Integer id, Integer status);

    //根据ID修改广告
    void updateById(Integer id, SmsHomeAdvertise smsHomeAdvertise);
}
